package org.jeecg.config.wx;

import org.jeecg.common.util.wx.WeiXinUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class WxConfiguration {
    @Value("${jeecg.wx.appid}")
    private String appid;
    @Value("${jeecg.wx.appSecret}")
    private String appSecret;

    @Bean
    public void initWxConfiguration() {
        WeiXinUtil.setAppid(appid);
        WeiXinUtil.setAppSecret(appSecret);
    }
}
